export default [{
	path: '/login',
	component: '../layouts/LoginLayout',
	routes: [{
		path: '/login',
		component: './login'
	}, {
		component: '404',
	}]
}, {
	path: '/',
	component: '../layouts/AuthBasicLayout',
	// Routes: ['./src/pages/Authorized'],
	routes: [{
		path: '/',
		redirect: '/task/week'
	}, {
		path: '/task',
		component: '../components/Tabs',
		name: '计划',
		icon: 'calendar',
		authority: 'WEEK_VIEW|ISSUE_VIEW',
		routes: [{
            path: '/task',
            redirect: '/task/week'
		}, {
            path: '/task/week',
            name: '周工作计划',
            component: './task/Week',
            authority: 'WEEK_VIEW',
            icon: 'briefcase'
        }, {
            path: '/task/issue',
            name: '周议题',
            authority: 'ISSUE_VIEW',
            component: './task/Issue',
            icon: 'commenting-o'
        }]
	}, {
		path: '/folder',
		component: './folder',
		name: '文件',
		authority: 'FOLDER_VIEW',
		icon: 'folder-open'
	}, {
		path: '/file/:id',
		component: './file',
		rootKey: '/folder',
		name: '文件列表',
		icon: 'file-text',
		authority: ['FOLDER_VIEW', 'FILE_VIEW'],
		hide: true
	}, {
		path: '/data',
		component: '../components/Panel',
		name: '数据',
		title: '数据采集',
		icon: 'briefcase',
		hide: true,
		routes: [{
            path: '/data/list',
            name: '数据录入',
            component: './data/List',
            icon: 'tasks'
        }, {
            path: '/data/analysis',
            name: '数据统计',
            component: './data/Analysis',
            icon: 'bar-chart-o'
        }]
	}, {
		path: '/unit',
		component: './unit',
		name: '部门管理',
		icon: 'sitemap',
		authority: 'ORG_VIEW',
		system: true
	}, {
		path: '/user',
		component: './user',
		name: '用户管理',
		icon: 'user',
		authority: 'USER_VIEW',
		system: true
	}, {
		path: '/role',
		component: './role',
		name: '角色管理',
		authority: 'ROLE_VIEW',
		icon: 'user-circle-o',
		system: true
	}, {
		path: '/logs',
		component: './logs',
		name: '操作日志',
		authority: 'LOG_VIEW',
		icon: 'paw',
		system: true
	}, {
		path: '/exception/403',
		component: './exception/403',
		hide: true
	}, {
		path: '/exception/500',
		component: './exception/500'
	}, {
		component: '404',
	}]
}]